fix bug of degradation from parallel to mirror; add tests for parallel protocol