Fix the test to use the random port of the mongodb