we should probably define a `EBTestCase` class that includes `assertErrorRegex` somewhere centrally, rather than copy-paste it in multiple places; separate PR, not here