NH-3222 - Add unit tests
NH-3222 - Add unit tests without result transformer
NH-3222 - Autodiscover types if quiery requires so