Categories in the path are ignored

When using subdirs to reflect categories, the underlying `categories` attribute was not set. I've added a new unit test and updated some others.
We should probably `.map(&:downcase)`