Add Buffer tests and fixup the docs.