support calling fork()(err, val) manually
test case of calling fork()(err, val) manually