use better temp file locations in tests