add extra tests for memdb