Add some tests
Fix a bug that broke run downloads