add test with doctrine proxies