Adding tests for credentials.registerEndpoint
Merge pull request #312 from hbeeken/test-credentials-registerEndpoint

Adding unit tests for credentials.registerEndpoint