test cases for the API