add mocha tests on routes