test(routing): adds more comprehensive tests for router

This tests that the router passes the URL segments and original
identifier to the page handler, and that a URL-encoded segment
is properly decoded.