Fixed test client api call
Refactored route registry