Add support for persistence adaptors

Make tests run without mongoengine