fixing tests so they don't leave stuff in /tmp/