Testing memory with model