add a test for route()