Updated test coverage for application_controller