Make those tests more robust

My local config has mongo.native_long set to 1.
Merged pull request #470