Exposed config and schema members of mongo provider
Add a listener for on("error")
Changed mongoose.disconnect to mongoose.connection.close method in order to just close this curent connection and not all open connecitons
refactored tests and added a mongoDB.disconnect clean up function after each test, when needed