Defined test function for read2cds solver