add some test coverage for DefaultLibrarySpec

+review REVIEW-5076