Added unit tests for gear api gear_validate.