Added tests to make sure indexes get updated when the model changes.