Added DoctrineHelper and refactored DIExtensionTests