Test for working with the API