NH-3222 - Add unit tests
NH-3222 - Add unit tests without result transformer
NH-3222 - Auto-discover types if query requires so