Added a test listener implementation that logs all events.

Used for testing only.