Fix tests for current mongod 2.5 after write api changes