workflow unit testing fixes