Made the test work.
Fixed artifact handling
Handle HTTP error