Test exception content using str, not .detail