Better tempfilenames when running tests. New test.