rejigged the controllertest