Added generated source validation, refactored package_path in unit tests