added new tests for controller