Adds a memoization test