make AnsiContextSequenceFactory pluggable for testing reasons