Added unit test for controller. Fixed also wrong method name in Controller.