Added routing and tests for routes