Fix agent test for el5.
Merge pull request #987 from pulp/fix-el5-tests

Fix agent test for el5.