Added test to test precedence of valid transition from nested composite
states.