add test for process sharing guard