added test for controller as