unit tests for seq.py