reference xhr in node context test