Make sure only directories are matched and store them in a set.

Adds a new context for application name tests