First, get a multimeter and set it to 0. Turn off the power supply to your oven. Then, disconnect the wires from the safety valve and test the terminals. Touch the two probes of the multimeter to each terminal. If you get a reading of 0-50, your safety valve is working correctly. Otherwise, book a gas oven repair specialist who can safely replace it for you.