First make a dummy switch and call it like you want. (Test in this case).
Make a second dummy switch to control time overruns, or use an existing one. (Check in this case)
Now you have three devices:
"Door" The switch to control
"Test" The dummy switch
"Check" The alarm switch
Than blockly:
IF Door=On AND Test=Off
SET Test=On After 15 seconds
ELSE IF Door=Off AND Test=ON
SET Test=Off
ELSE IF Door=On AND Test=On
SET Check=ON
SET Test=Off