Added test for custom application listeners.

Change-Id: Ib47b1604675e5beef8945b57df9dfb28ddef3ffd
Fixed typo in application's default listeners.

Change-Id: Ifb6241ff0d3799dbefdd9bd160e7f14c3ab68bf8