Gloo: tests for fixes to offset handling in DataBuffer.set_data

Also pep8