Fix dependencyInput count in case of repeated test

Always use the latest result of dependency
Merge pull request #1318 from eelf/patch-3

Fix dependencyInput count in case of repeated test