unit test for memory storage
separate tests
use a helper function
Merge pull request #64 from monnand/master

unit test for memory storage driver