Improved tests

Tests are now using an AppKernel and firing requests to the route, instead of mocking every part or the framework.