added unit test and e2e for notification.