testing addFlow and setFlow methods