test to ensure nil values are memoized