See this article, Diagnostic and Antibody Testing which goes through the two general different types of tests, one diagnostic and the other that looks to see if you have been infected -- and might, maybe, perhaps ... have some immunity from getting sick again.
Know the issues with both!