Fix minor bugs in testnodes+testpathfinder