Add a test to verify that error messages are passed from the child

The test does *not* currently pass.