From your message I take it was you who had insertive condom-protected anal sex. Whether your partner was a man or a woman, the fact you wore a condom makes it safe (no risk) for HIV and Hep B if the condom was intact.
If you are really worried and eager to do the tests, HIV Antigen/Antibody test is accurate at 4 weeks, antibody test at 12 weeks, for Hep B it is more accurate to test at 12 weeks (HBsAg test is pretty accurate at 9-10 weeks) and there is no test for HPV for men.