Updated specs to use collection instead of index.