added onTransitionEnd to popAll and added test cases for it