Add test for NoSuchIndexException