test for passing error to parent