Fix bug when adding models with no comparator.

Added test / implementation to make sure models are added at the correct
index even when there is no comparator defined.