Added TestGenMatNormal