Some tests would be much appreciated :+1: 

Also IIRC, the error messages take the user's `LOCALE` into account and might be translated to another language. If so, how should we match those?