[PATCH 6/9] test: Correct pylint errors