Fixing threshold test.