Add tests for routes

It resolves #100