install: even if a selector matches installed pkgs we can still put it in.

On mschroder's suggestion.

also improved the unit tests.