spliceWhile test