Fix rate mode
Add complex integrator test