The test looks for changes or mutations in the FMR1 gene, which is responsible for producing the fragile X mental retardation protein (FMRP). Fragile X syndrome occurs when there is a mutation in the FMR1 gene, leading to a deficiency of the FMRP protein.