Corrections made to test logic.