Added new test for endpoint