fix a bug in storage unit tests