Added tests for replaced indexes