tests for reinserting gaps into sequence