[PATCH v2 3/3] test: Add test for partitions