Fix integer overflow in StateEditor
Add StateEditorTest
set default locale to English