Test for state restoring and internal dict schema, beampkg description in README

It's mainly for adding a test for the last bug.