properly report test error
Merge pull request #3022 from jrgm/fix-frontend-error-report

properly report test error

Tested with both test failures and all tests passing. Operates as advertised. r+

Nice cleanup @jrgm.