adds test for controller