Test to ensure credential definition is defined after index.registerType
Merge pull request #303 from hbeeken/test-registerType-with-credentials

Adding test for index.registerType with credentials defined