Refactored "ipc" test

This is now it should look like from my perspective. If this is ok, I'll fix other tests.

The patch is submitted under MIT License