Adding test for library=true