fixed #39
added a inut test for programmtically created IDF and SDRF
added unit test for library construction protocol check