use tmpfile as history file in tests

otherwise the default history file that is used when running
tox will grow pretty quickly and at some point cause out of
memory errors