Bug 921134 Add initial framework for buffer tests
Merge pull request #1250 from jsantell/buffer-tests

Fix Bug 921134 Add initial framework for buffer tests, r=@erikvold