making functional tests work with an external mongo database