Refactoring: Scanner tests updated to use the new scanner classes. Removed the old FileIO and DirectoryIO classes.