The HIV test and sexual behaviour in a sample of homosexually active men