add threshold in test.