add tests for cmdline.apply.format_node_result
fix test for bw_apply