add append/overwrite test case