tests: have the error message correspond with the BufferType