Fix memtable construction in tests