Added support in build.gradle for setting the MongoDB URI, and fixed all the tests that failed when that URI contains a credential