Add factory for Application
Add functional tests for ApplicationsController
Merge branch 'refactoring/add-tests-for-applications-controller'

Coverage 81.55% -> 83.74%