Engine: Refs #3641 - Non-api controller tests

Regarding the filter rule changes, I did the minimum to get the tests passing. I've opened [an issue in red mine to fix the other parts of the code](http://projects.theforeman.org/issues/3675).