Add some tests for setRestRoutes