Testing Memory implementation