Testcase for is_Piecewise for Mutable and Immutable matrices