Merge pull request #564 from bjori/fixtests

Fixtests

* bjori/fixtests:
  Fix the test after warning change & fix replicaset race condition
  This test was supposed to test if we correctly created the index
Fixed PHP-949: ensureIndex() creates wrong names
Fix test after fixing the bug