Test optimization.