Add failing test for DDC-2785

Add a failing test for

http://www.doctrine-project.org/jira/browse/DDC-2785