Add tests on partitionsNumber