add test for lastApiResponse