implement tests for loadArtifact() error cases