Fix test/tempfile.cpp, closes #27.