Allow passing a test predicate to findNodeAt and findNodeAround