Add test for indexing libraries