improve on error log for the tests