Added a new unit test to check the fired event sequence.
Improved a unit test to check the transition of updating attribute.