tests for pre_transition_callback and post_transition_callback