Set up functional tests for mongodb