Added unit test for routing.