Improve the test framework to count the errors, motivated by issue #237