decouple tests from `@expectedExceptionMessageRegExp` and `@expectedExceptionMessage`