fixed errors controller test