Append reference xhr in node context test case

Append reference xhr in node context test case