tests in controller