Link tests to library code and call method