memoization and paralell streams tests