Phs/lightly refactor specs and helpers

Clean up the specs a bit and extract a filesystem shared context (using ruby `Pathname` objects.)