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

Add unit tests for upgrade.rb:
- gear upgrade extension methods
- compute_itinerary