Script to fix inconsistent edition states

Tests live in the script because I don't want them in the test suite.

Should we care about testing this particular test then the test are easily
visible and deletable.