I googled this:
Your doctor can't test you without your consent. HIV tests can only be done with the consent or at the request of the patient. Some states require written consent; for others, verbal consent is sufficient (visit
Centers for Disease Control and Prevention for the requirements in your state).