add Gradient testcases for SigmaPi layers (with and without constraint).