tests: have the error message correspond with the BufferType
Merge pull request #23 from shama/buffertypeerror

tests: have the error message correspond with the BufferType