Fix test_partition

Change-Id: I13e0afbfe96fbb8920db7344134676be2732625d