Add test for hooks

Kinda dubious what we want to do with directories, but currently our behavior is not to recurse into directories. This test isn't even testing whether we recurse into directories though, just that the presence of a directory doesn't cause everything to break (because directories usually have their executable permission set, for traversability)