Added unit tests for the notification endpoint and listener.

AFDP-100