mock getNodeList method