The writeSkewCheck flag is not written to, you should add another test with optimistic locking *and* write skew check enabled.