Tests for library_class