Add unit test for routes.