use tmp dir for history file when running tests

`at_exit` has interesting behavior with test-unit. It seems to get called before the tests even begin to run, so putting this assignment in the `setup` did not seem to work.

Perhaps using a `./tmp` for the history file would be more flexible down the road... or even just .gitignore it. here's my suggestion for now.