Add unit tests for dump.py

To demonstrate stubbing, replacing a clock, temporary files in _trial_temp