link tests against library