Fix unit test issue for absolute pathname