Added missing variable declaration for perl_package_name and fixed the
spec tests.