Add more routing tests with custom regexp

In the last PR #190, I didn't test what happens when `ident_hash` has a dot, which is the case for collections with versions.  I've made the regexp more general and it still works correctly.