MDL-36014 cohorts: externallib, search, unittests