added tests for routes