add some unit test coverage for check test binary linking

+review REVIEW-5263