Merged index working; need to add tests