Added pre/post transition functions.
Added tests for pre/post_transitions.
Wrong order of expected and actual in some tests.
Added tests and template for transition_unification.