It looks like this string creation method is duplicated in multiple tests.  It probably makes sense to pull it out into a separate helper function.