Fixed tests
Fixed routes.js for tomcat