Add test of API call