Added test suite for routes.js