test shared memory