Add test ring option for single-thread optimization.