test: added msg verification on assert.throws
Note: The string representation of a regexp reorders the modifiers.
Checklist
- [ X]
make -j4 test
(UNIX), orvcbuild test
(Windows) passes - [ X] tests and/or benchmarks are included
- [X ] commit message follows commit guidelines
Affected core subsystem(s)
Tests