tests for api (getting a list)