Unittests for file IO.