add Pathname.write_binary
use new test helpers
wip
wip
wip
wip
wip
wip
wip
wip
wip