Refactoring data integration test base class; adding missing header.
Adding integration tests for MongoDb. Disproves #1081.