Rewrite-specific routes should be configured when test case is described, not globally.
Use assert.ifError instead of comparing to null.
Stylistic tweaks and linting.
Remove unused 'express' require in test.