Adds tests for the /reindex action.