Delaying endpoint configuration check from client construction, fixes unit tests.