Add basic unit test
[909014] Improve error handling for artifact downloads