Add unit tests on LogListener