fixes #2614

added method for checking event registration
I would suggest creating an abstract EntryListenerClass with all methods implemented so that in this method you only need to override the method you are interested in. Current test method is very long because of a lot of non relevant noise.