Reporting JUnit test mechanism failures as internal errors