Helper to create libraryView in tests