Fixed cmake link vars for config's tests