Fix incorrect call in memory tests