add modifyState tests