Added test for resetting changed attributes