Fixed FrameworkReregistersFirst and SlaveReregistersFirst allocator tests.

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