The tests can be run from directory 'scripts/python/TerraSync' using: python3 -m unittest tests.test_dirindex (or just 'python3 -m unittest' to run all tests pertaining to terrasync.py).