added getNodesWithProperties with tests