decouple tests from `@expectedExceptionMessageRegExp` and `@expectedExceptionMessage`
Merge pull request #1400 from marcioAlmada/master

Decouple some tests