Fix bug test_read_write_same_file read no content