addded test script, some kind of bug when read or write to file..