state.t: Improve test for #123029

This version fails in 5.20.1 whether COW is enabled or not.