Added low credit notification config switch
Moved credit threshold check into it's own function
Added tests for the notification_threshold_crossed function
Changed the logic for the notification_threshold_crossed function