Use tempfile module and remove resoures redundantly created in setUp()