Fixed test for DoctrineListener.