fix applications controller spec