Fixed errors in SequenceTest