Test for controller