api rest controller test fixed