Add some tests in controllers and in applications_helper