Add optimize to status test to make sure all indices are added