unit test getFlows