test: fix UsageTest test, so it work without dnf is installed on the system
PEP8 cleanup