Use the shouldNotify config method to check if the error should be sent

This fixes the problem that the setNotifyStages method had no impact
Added unit tests to see if shouldNotify is being called
Merge pull request #20 from evolution7/master

Bugfix: notifyReleaseStages was not taken into account