Fixed routes in app.js
Added tests for error checking surveys