Add a small time sleep in testListen for mongo