Unit tests for notification management.