fixing more special routing tests
adding API but using Integer.MIN to avoid silent bugs if node is -1