Added spec for a memoization edge case