Updated remaining tests to do proper file i/o.