Fix failing test due to optimization order.