Made file writing tests use a local file.