Remove get_tmp_filename from test code

All the test code is updated here except test_assign_taxonomy.py because that test was failing.