Tweak test script.
Error out when encountering an invalid package name.