added test cases for NotificationManager