added testcase for directed memoization debug