Added tests for user-specified confidence levels
Made changes to fix bugs in user-specified confidence levels