tests.py: refactored a bit
exportdata.py: test_exportdata_percentage