Your Doctor is correct, most STI tests are accurate if done 3 weeks after having sex. HIV tests can take up to 3 months to show an infection so repeat this test and if you want you could repeat your syphilis test as it can take up to 4 weeks to show this infection.
Please leave a comment to let us know if this answers your question or if you need more information.
Health Nurse
For other readers, please feel free to leave a comment, or let us know if this was helpful.