api controller test