t/chainlint: add chainlint "loop" and "conditional" test cases