replaced unit tests with integration test for the controller