emit error on test failure