Modified regex in test to make it work with old and new versions of
Carp.