Added a couple of tests for stateUpdate, resolves #7