Fixed a bug I introduced in file-io test