Added tests for Endpoint.