clean up test case for throws