refactored workflow unit tests