Adding piecewise tests for evaluation and transformation.