require 'pathname' to fix 'NameError' exceptions

The tests began to fail for me locally recently, with several `NameError` exceptions for `Pathname`, while they were running fine on travis. Adding this directive fixed that.

Might as well be an issue with my system only, in which case you can close this.