Add package_name tests.

First the fixtures needed to be updated to output the package_name in
emerge acceptable format (prefixed with '=').  Then the logic needed
simplification (less cyclomatic complexity).  The tests were pretty much
the same (mocks and all) as the other property test.