Added test for "endpoint" method