Avoid division by zero
Implement several tests for Workflow