Add testcases for change-abandoned and change-restored events