Adding test for index.registerType with credentials defined