add unit test for reindex