JSON keys are the JSON constant values, not the constants themselves.
Add tests for legacy state data