Tests for test processes

@ereng. Please review. See issue #86 for details.