Added complete publish/memoize tests