Added a test to verify socket config for mongo before connection