Artifacts stdlib: Fix some tests if we aren't running with --depwarn=error
#60892
+23
−8
--depwarn=error
#60892