adding tests to the api