Flesh out partition and its tests.