test list memory cost