test_flow: removed lambdas and copypaste