Added failing test to prove #4019
Fixes #4019
Merge pull request #4025 from cakephp/3.0-entity-context-fix

3.0 entity context fix