Added support for storageEngine field for createIndexes and createCollection commands

  JAVA-1549
Decrease chance that the test will hit the race condition
Added more DocumentCodec unit tests