Provide hooks to enable push/pop on underlying demostorage

The feature will make testing easier.