making tests more consitent

I'm going through the tests in order to learn router.js internals.

If it's ok, I'll submit a few PRs like these to improve consistency between tests and remove any unused code.