improve style of tests
Fix #16. TypeError: buf.set is not a function (firefox)
2.0.9