Fixes #6954 - Add additions that allow Foreman tests to pass.

Foreman allows a plugin to provide a file to be loaded during their
test runs. Here we address:

 * Dynflow transaction issues due to using hooks on extended Foreman
   models