fixed up controller test nil problem