Mongo Integration Tests

Fleshed out the query/mongo integration tests some more.