fix fat memory
update prepare
Fix fatmemory testcases