fix test_code_quality.py failures