Fixing failed tests

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