How Testing Helps Maximize Profitability