Also cleaning up integration tests that had checks for the empty item attribute in certain results. Fixes #7535
The `apt` and `yum` modules will automatically install python dependencies. This change updates the existing integration tests to test whether auto-install of dependencies is functioning properly.