Added test for listener/dispatcher

From StackOverflow question:

http://stackoverflow.com/questions/22830674/write-unittest-for-symfony-eventlistener/