added unit tests for subflows, allowed subflows to run on one single result