Adding more tests (currently failing).
Using deftest instead of testing, so we can run indinvidual tests.
Applying preconditions post middleware.