impliments a user overridable endpoint base class and associated tests
fixes typo