runner: clear nested if blocks with same test