Fix createIndexes command format, RUBY-713.
RUBY-713 Fixing index tests and minor bug in generate_indexes