Added getApplication() method to TestApplication to be able to retrieve it during testing