Normally you maintain a constant speed as you travel through and intersection. If you spot a hazard, you should cover the brake in case you need to slow or stop. If the light changes you should not accelerate hard in order to beat the light. You should have picked a decision point prior to that, that you were proceeding and maintain you speed. Running an amber or red light is an automatic failure and your test may be terminated!