Added pin_sex function
Added coordn test