unit tests for transitions