Fixes issue #2373
Use the promise chain for the test
Updates to the test to check for valid unique index creation
Merge pull request #2374 from rfink/bugfix/indexes_with_field_names

Fixes issue #2373