Adding AutoCorrStageTest unit test, and debugging class.