#10 Put EventDispatcher.Listen under tests. Change type of messages channel.
#10 Close channels used in tests. Modified for loop to iterate over channel.