This is a sub-issue of #298.
After upgrading the CI to clang-tidy-13 and fixing all warnings and errors in source files in PR #310 there still remain a large number of warnings and errors in the test files under test/**/*.h and test/**/*.cpp. Fix these warnings and errors as well.