Refine print format
Fix Defect: Cannot find state indicator field defined on super class.

Root Cause: missing using a fixed class variable other than an iterated
index.
Fix Defect: Registering StateMachineObject Failed while the corresponding StateMachineMetadata was registered already.
Refactoring Core Function Tests
Fix Test Defect
Add new Tests into suite