Move glob tests to a run-pass test

The normal unit tests cannot change the current working directory because it
messes with the other tests which depend on a particular working directory.