fix shell unref bug
fixing timeout issues in npm test
fixed timeout test issue
enhance deferCallback's timeout