tests: fix coverity scan side effect in assertion issues

2 jobs for coverity-fixes in 1 minute and 12 seconds
Status Job ID Name Coverage
  Container
passed #11259281
container_fedora

00:00:26

 
  Build
passed #11259282
build_on_fedora

00:00:45