fixed test_has_changes