Added test cases for onNodeChange and onNodeChanging