Added a test for slave recovery when a scheduler failover happens.

From: Jie Yu <yujie.jay@gmail.com>
Review: https://reviews.apache.org/r/13677
Added slave recovery network partition test.

From: Jie Yu <yujie.jay@gmail.com>
Review: https://reviews.apache.org/r/13723