adding an assert into test.py to assure that the file to be loaded contains enough data (thanks to Davide Del Vento for pointing the issue out)