added test for setting isDirty property in initialize()