add unit test of storage func
developed unit test