Add basic test coverage of toArrayBuffer function

I'm happy to write more tests.  I'll continue adding coverage of the helpers file unless there is somewhere else that would be more helpful.
`assert.strictEqual` here and above.