Adding tests for types.buffer