Added unit tests for named routes

Merge the tests into your fork and they will be automatically added to your merge request on the master repo (I think).