enhanced file reader writer tests