Add tests for get_buffer