testing of format of data fetched from api