Test cases for Endpoints