Fix some problems in `ApplicationHelper` spec