Updated tests for controller and added check for actions