Add tests for buffer and gatherFrom