Whilst I think it is a good idea in principle, its not at all practical though in reality. As people have already stated, it takes a few weeks for the virus to become detectable, so a visitor could have his or her AIDS test before they set-off for Dubai, having only contracted the disease a few days previous to going. Then they are cleared in immigration to go happily spreading the virus around (as it were).
What would be a more sensible approach is to teach people about safe s.e.x and to be a little more open about the dangers of HIV and AIDS, instead sweeping it under the carpet and pretending that there is definately no s.e.x before marriage happening in Dubai!!