test for shm