fix tests linking