Simplify tests so they don't write files.