Tests/improve application helper coverage

Improve test coverage by removing unnecessary conditionals in application helper
The indentation of this method is one tab level too deep.