Hello, First, thank you for working on this bug! I have a branch of Emacs which attempts to run all the tests under Testcover, and I've tried it with Alex's latest patch. The patch has fixed the problems with Testcover and should-error except for one weird case. Here is a file that will let you reproduce the weird case on master with the patch applied: