Test Cases for the API