Added isDirty = false after reverting (and test)

After reverting, the model should not be dirty