Adding test to make sure we properly exit the child.

In the channel, we have to make sure that after forking we
properly exit the child from within the channel code. I added
a test to confirm this.