thd snippet uses tap, if err t.fail(err) snippet