updated the controller test