add unit test for change ui event