Adding tests for extractSequence.