added file read/write test