Bugfix -- communicate() on mock process in tests

Added a stubby definition to prevent errors during tests.