fix package_type string comparision.  Add script check in test