#14 refactored support for mongodb tests