Fix inverted test case.

The package file should not be created if an invalid key is found in the
package metadata; this test failed if the package *is* created.