Yes, of course it has a cost. Material has value. Even Elon doesn’t have unlimited capital. Even if raw material was “free” there’s still the opportunity cost of simply selling the material and pocketing the cash. The test may be worthwhile but that doesn’t make it free.