tests: have the error message correspond with the BufferType

Hi! I'm working on updating level.js, specifically getting all the tests in maxogden/level.js#19 to pass. Some of the tests are incorrectly failing because the error message will check for `'Buffer'` even though the buffer type is `ArrayBuffer`. This will switch the error message to the corresponding buffer type.