functional test for sequential pattern in workflow