Add failing test for DDC-3160

See http://www.doctrine-project.org/jira/browse/DDC-3160