Test the notification API.