Made routes shallow and added tests.