tested head() and subpath()