added failing test case, uses memdb