fix link failures in tests/