Add failing test for DDC-2785

Add a failing test for

http://www.doctrine-project.org/jira/browse/DDC-2785
Could you actually change this or find out which element in the UoW actually still references the given `$object`?