Fixed memorization test case.