An easy way to test a solenoid is to activate it and see if the armature moves as expected. Failure could mean the valve is not big enough for the task or that the solenoid is damaged. Complete systems like the Pilot Gas Alarm include built-in test functions too.