The economics of design and test