Corrected defect in domain classes test case to save in mongo DB.