All they test for is antibodies in your blood. Antibodies mean your body has been infected with the virus and reacted to it, possibly even gotten over it.
depending on which kind of antibodies the tested for. IgM antibodies indicate recent or current infections. IgG antibodies indicate infection that you have likely gotten over and are now immune