add test for api returning nothing