tests and refactoring for application helper methods
Merge pull request #78 from alangster/helper-specs

tests and refactoring for application helper methods