CLOUDIFY-1744 added equals and hashcode to event
CLOUDIFY-1744 added unit tests for events cache