Fixing bug in segment indices
Adding new test for Moz study