Fix dependencyInput count in case of repeated test

Always use the latest result of dependency