Feature/regression testing

This fixes compatibility with twisted 12.2.