Add error testing for path names