refactor fiona_test.py