Fixed link error when building tests