removed hardcoded oauthScope from EndpointConfiguration, added testcase