finalizing checkSequence method and add the first test