Extract helper process to new module

Tests used to run the tests module as a child process, using confusing
import handling code.  This patch added a new helper module for using in
child process tests.