Maybe better to compare by number? Could be more stable... and we test the Number field in the error type, too.
Don't know about the multiline error, though. Array of expected errors? Split to single queries?
IMO, depending on the text reduces flexibility and makes the tests more brittle.