improve core test cases

See the single commit notes.
OK looking strong. I think ChecksumException can get the same treatment.