use a regex for testing assertion message.