The dependency addition is fine. You need to explain why those tests shouldn't work with static linking. If there is no good reason they shouldn't, but they don't, then they just need to be fixed.