memstore: a few fixes, and enable the tests!