Added Test cases for listener class