Fix logging notifications
This changes fixes the following error when trying to emit notification from log messages:
AttributeError: type object 'Notification' has no attribute 'LEVEL_CHOICES'
It also adds tests of the notification handles, which where missing and one reason why this bug was not detected earlier.
See also: !1324 (merged)