fix: Use temporary direcories in tests