We're commenting on this line:

```
[_testCasesController.tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:[_category.testCases count] - 1] byExtendingSelection:NO]
```

You're explicitly getting the 'last test case' which is not necessarily the test case you just inserted. So you're making an assumption that the class appends it to the end, which is not necessarily true.