MongoDB 2.6 testing

While running the tests against the 2.12.0-rc3 Java driver and MongoDB 2.6.0-rc2, I found a couple of failing tests and one bug in the way $maxDistance is added to a $near query.