controller test fixed