API request tests