Modified unit test to include checks for nSeg