refactored tests more and cleaned up specs also added in test for the application helper module