generic_file_spec.rb refactorings

this update refactors generic_file test.