Rewrite the tests to remove the dependency on installed catalog

This patch removed te direct call to the installed catalog and
refactor the test cases by creating local packages and actions for
the local tests.

Closes-Bug: #1164
15 files changed