Add non-trivial segmenting unittest