Fix Mem test

Use ClassTag instead of either gen() or Manifest