Add support for testing path isolation

The path isolation algorithm is now in, seems to work so far.