build: fix tests local run; fix tests linking

dmitry.mashoshin requested to merge mashony/fix-tests-run into manual/english_MA

Merge request reports