add testcase IsValidStateString Upstream-commit: 05026b187b35dfa97e5f4895c6c0a21feb8bc90d Component: engine