Replaced indexes with find closure in randomly failing test