Updated the unit tests to cover casting of parameters in the routing.