does pilot works on test mean it goes out when you release the grey button? if its a newly installed thermocouple it may not be in the flame correctly, if an old thermocouple, try a new one, after this you have to check the gas valve, the damp should stop when the boiler gets hot again
john, January 2010