tests: Fix build warning of -Wshadow