Added test for registerNotifier