fix tests for when a mongod is not running on localhost