Update unit tests.
Fix execution order of enter, exit and action blocks.