Test for preserving partitions from core device.
Test for preserving partitions at core device, which were made on exported object,
after stopping cache.
Also added two fields to 'Core' class which allows it to use 'create_partitions' function.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>