Fix Qt6 build with KF 5.94 deprecation level
These tests include a private header which includes KConfigGroup, and that isn't otherwise in the public link interface anymore.
These tests include a private header which includes KConfigGroup, and that isn't otherwise in the public link interface anymore.