add unit test of storage func