Added tests for memtable.