add OffHeapStorage
add storage switch mode
tests fixup and parameterized