Use assert_raises() correctly
Removed private _decision_function()