Add test for endpoint

Closed lishu requested to merge test into master

Merge request reports