Test for highest common path