The diagnosis of toxoplasmosis is typically made by serologic testing. A test that measures immunoglobulin G (IgG) is used to determine if a person has been infected. If it is necessary to try to estimate the time of infection, which is of particular importance for pregnant women, a test which measures immunoglobulin M (IgM) is also used along with other tests such as an avidity test. Diagnosis can also be made by direct observation of the parasite in stained tissue sections, cerebrospinal fluid (CSF), or other biopsy material.