Added cd contextmanager
Cleaned up /tmp in test cases