SOLR-2762: Adding more unit tests, but can't reproduce or figure out where off-by-one could happen here.