The tradeoff between testing accuracy and energy consumption