Added preliminary DPG/optimal test function code.