fix memo test; added memory usage to bench