The two-time Olympic champion lost an appeal against the restriction of testosterone in female athletes.