Fix a bug which produces duplicated test runs.