IBA gender tests on two boxers were illegitimate: IOC