extended test for on_change hook