Added tests for checking threshold context reaches limit