Issue #3402713 by mstrelan, smustgrave, dww: Fix strict type errors: miscellaneous fixes in core Kernel tests
mentioned in commit cb25ccbb
mentioned in commit 8331ba7e