refactor GenericFileReader test case
add GenericFileWriter test case