tests: fix bug in script that test code to find bugs

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>