Testing in Controller class