Add: Check that we don't segfault with incomplete package_methods

This test only covers redhat and only the package_add command. Probably more
permutations of this test would be valuable.