added integration test confirming working of event_subscriber publications
fixed issue where entity was being set with latest version and thus not applying the events it needed