Added test for connection notify controller.
Removed three unused lines.