Separating out routes for clarity of code
fixed tests to test the web endpoints