Date type of error messages are not consistent in PTL
For example, the msg attribute of PTL exceptions.
Sometimes it is a string and sometimes it is a list of strings.
This makes test writing error-prone.
Ideally, they should all be string and not split into list of string so that sub-string matching is easy when writing PTL tests.