Testing the optimality of a performance evaluation measure for a gainsharing contract