<node unit tests> Add tests for gear upgrade extension methods

Adds a bit of unit testing for the gear_xyz upgrade extension methods
in upgrade.rb