Adding tests for credentials.registerEndpoint