Note that this is an old test from the tack program which validates a lot of Buffer operations, but it could use to be split up into a number of tests, rather than one big one for run_tests.