ConstantGate: ckeck for null state in constructor.
Test for ConstantGate created.