TODO: do not forget me
flow-tool: improve unit-testing mode