add api tests checking api response method