Issue #3402007 by marvil07, mstrelan, quietone, smustgrave, larowlan: Fix strict type errors in test modules
mentioned in commit 50496b5e
mentioned in commit 49283982
mentioned in commit b3f2f8de