rtl_test: Refactoring and optimization for PPM error measurement.

Part 3. Added states for ppm_init.