add tests for routes