unit test for endpoint url