Fix Pathname test in 1.8