Feature/seqware 1890 outoforderbug

Add test that exposes issue with parents being created out of order in workflows and fix