test signal setting and handling