test-nodes: Refactor check*