Wrote unit tests for Listener, passed