Add missing shouldExitWith function

This commit may introduce a cycle if tests for distributed-process-extras uses distributed-process-tests, however it's possible to break it.