added test when_shared_mem_reattach