Fixing failed tests

Fixes 14 tests. The remaining 3 are bugs in the api/cli.
http://ci.theforeman.org/view/Hammer/job/systest_foreman_hammer_nightly/26/default/