Doctrine tests