Pathfinder tests and fixes