tests: fix checkstyle failure in test_stats_client.py