redis: end segment before callback.  add tests for segment start/end