[LOG4J-3675] Fix `spring-test` dependency scope

The dependency scope of `spring-test` accidentally changed to `compile`
in version 2.21.1.

This is part of (#1706).
4 files changed