Update adapter tests to use Uint8Array and fix crypto encodings, complete zlib work. Fixes #52.