add unit tests for key value storage