Added tests for GenerationListener.