Some unit tests are broken with ansible-core 2.19, this PR aims to fix them. Reviewed-by: Bianca Henderson <beeankha@gmail.com>