add tests that token is destroyed

adds the `buf` module, which helps converting between buffers and hex strings.
there were errors before, so this helped fix the tests.