Added test method for returning current endpoint