Add tests to allowedTransitions

Adding tests for allowedTransitions