DO NOT MERGE test of write_end = size + offset