The state has clarified that HIV testing is not mandatory under the HIV and AIDS (Prevention and Control) Act, 2017.