Use memoizee/weak per @maksimr request.

Memoizee/weak requires objects, so tests reflect that