implemented error output for all tests