2346659 new core adapters break tests

PR for ticket https://www.drupal.org/node/2346659
I see but looking at Drupal\rules\Engine\RulesState:autoSave() at line 196 I see it expects a typed data object and not an entity object, probably we should solve this in there instead of here?