Updated tests to flush GORM.