test on multiple threshold