Add error output to tests