Cost and Utility of Testing