wrap error cases in expect_error