Made base classes for tests multithread safe and added test parallelism to gradle for all projects except morphia, which still has some failing tests when run in parallel