Fix unit test build error.

Review: https://reviews.apache.org/r/12925
Fixed TaskTracker pending tasks calculation.

Review: https://reviews.apache.org/r/11116
Changed JT to ignore unhealthy TaskTrackers.

Review: https://reviews.apache.org/r/11117