change  the name for sharememory and add unit test