fix errors with the build that come from CascadeJob having multiple flows. now flows in JobTest are optionally depending on the type of job