link the test against the static library instead of the dynamic one