[DDC-2451] Fix entity listeners serialization
[DDC-2451] Fix test assert
Merge pull request #670 from FabioBatSilva/DDC-2451

[DDC-2451] Fix entity listeners serialization