added unit test for fire on change