Fix requires test to pass.
Fix rpm command handling and test for requires_eq.