Test that temp file usage decreases with truncate.
Fix temp file usage not decreasing with truncate.