Testcase for possible bug in Doctrine Criteria handling