write a test for ipc communication