Remove unused imports in tests (GH-14518) (GH-14520)

(cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)
53 files changed