Add better tests for json
Add more tests, still failing though
Switch to strings for comparison
Pass function to enforce error
Test notFoundHandler
Add test for indexHandler
Merge branch 'better-tests' into 1.1-development

* better-tests:
  Add test for indexHandler
  Test notFoundHandler
  Pass function to enforce error
  Switch to strings for comparison
  Add more tests, still failing though
  Add better tests for json