tests are failing because this error message ought to be different for `String` and `Buffer`