test for issue #561
Refactor regression test for #561
Merge branch 'master' of github.com:doctrine/mongodb-odm