Added spm_store_free() feature and test function