fix for mongo tests