Improved dependency finding logic and tests to check extras in dependencies.