add two test cases to coverage specific pre/post from/to state change callbacks