Improved a unit test to check the transition of updating attribute.
Removed a duplicated test code.