Api controller test