Add a regression test about #1005
Revert "Fix pkg-search test."

This reverts commit c254b510a4c6a22223df320aa61eb95d5306ffbd.
Use the same mecanism for pkg register as for pkg to register a package

This allows the check the conflicts before actually start installing
anything

Fixes #1005
Do not enforce any ABI for test to pass everywhere