adding another test for second output case, what is the path from a to d