Solution: add a noinst convenience static library and use it with the tests that require it
Attach a file by drag & drop or click to upload