fix issue #6 and add test for Geomem