Fixed and reintegrated FileIO

Combined FileIOTestAdjustWrite into FileIO as well.