Test creating and reopening a kvs.