Added unit test for listener in unit of work.