add file rw test

Add file read and write test codes.
It will write and read the same file for three times.

Signed-off-by: Lindell Xu <lxu@vetronicsltd.com.cn>