adding partitioning.
changes made to modify tests.