Fixed AllocatorTest.SlaveLost test.

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