refactored the tests some more and added the application helper tests