assert that output of scrub is instanceof err