Two small bugfixes

Hi,

I've just been playing around with MorboDB as a way to ease integration testing with some code that uses MongoDB. I stumbled across two small issues (a warning, and a small inconsistency with MongoDB) that I've fixed and added some new testcases for. The details are in my commit messages.

Hope you find the changes useful, and thanks for your awesome module :).

Cheers,
Vincent.