Fixed unit tests for controller event listener.