Fixed writeReadFile test