[TA63] Function's transition attribute must be valid.

1. Added test_state_function__with_invalid_transition
2. Fixed metadatabuilder.parent
3. Added logic to verfiy transition's attribute
4. Refactoring TransitionMetadata reference to TransitionMetaBuilder