added test for SegmentsBySourceJS