#11381: Fixed rake tests with eager_load true