testing of the notification to observers