basic error handling for gold test case