Make tests robust to restart.
Cython for filter.