Detection of halotestin and other such illegal anabolic steroids in sports is achieved by GS-MS identification of urinary excreted anabolic steroids and their metabolites. In a test for halotestin, a dry residue obtained from a urine sample is dissolved in dimethylformamide and a sulfur trioxide-pyridine complex and is heated with 1% potassium carbonate solution. Halotestin and many of its metabolites contain two polar hydroxyl groups, leading to intermolecular hydrogen bonding that increases their boiling point and reduces volatility. In order to attain a gaseous sample for GC-MS, the products of hydrolysis are extracted, dissolved in methanol and derivatised to form volatile trimethylsilyl (TMS) esters by adding N -methyl- N -trimethylsilyl-trifluoroacetamide (MSTFA) and trimethylsilylimidazole (TMSImi). 
On September 20, 2007 Floyd Landis was stripped of his title as winner of the Tour de France , and was subjected to a two-year ban from professional racing after a second test showing an elevated T/E ratio. Landis won the 17th stage of the tour; however, tests taken immediately after the stage victory showed a T/E ratio of 11:1, more than double the 4:1 imposed limit (recently lowered from prior limits of 8:1 and 6:1). On August 1, 2006, media reports said that synthetic testosterone had been detected in the A sample, using the carbon isotope ratio test CIR . The presence of synthetic testosterone means that some of the testosterone in Landis’s body came from an external source and was not naturally produced by his own system. These results conflict with Landis's public speculation that it was a natural occurrence.  Landis originally denied the charges, but in 2010 Landis admitted to doping during much of his career,  but continued to adamantly deny taking testosterone that would have led to the positive test in the 2006 Tour de France.