bug fix in GenerateNumberSequence func and test code to get tot 100% coverage