testing for controller