fixed issues with tmp path and global var cleanup, fixed testing.py for stoich rename