Tidy up tests around rewrite rules

- Use new getRules when were not interested in testing the
introspection route.
- Account for requirement to pass server to addRules in rewriteRules.