added test for amount changed.