Start to fix unit tests

This adds in the necessary Application mocks. There are still 10 test failures due to the change in layouts - not sure how you want to deal with them though - editing the tests or the JLayout