Fix failing test for router with no trailing slash