added test for Library assignment