No longer list directories that don't have a metadata.json in them.  Added some DirectoryScan tests.