Added validation and tests to check data integrity for derailleur gears.