If you are interested in knowing how Covid tests work at a biology/genetic level I suggest you have a look at this video. It explains the different types of covid tests with their pros and cons as well as covid antibody tests. https://www.youtube.com/watch?v=s_usIkrVQwE