unittest for get_sequence
refactor get_sequence.py