add function for composing workflow for testing