Added tests for add threshold