test/lib: Add parent stdout test