Add fork_and_orphan() test

Issue #2.