Test the notification logic