Added test for notify()