Another failing unit test!
Remove some debug text
Put next sequence number calculation into method
Change next_seq function