Fix partests with the optimizer.