Fixed unhandled error events
Init commit of mongo tests