add test for Pathname#dup

* See #1209