Reordered functions, renamed test
Tests for transition exit and entry sequences