document IsPath requires non-nil graph
add IsPath tests