(3)Where any agreement or compromise has been made for the purpose of settling a dispute as to the rent payable, the Court shall, in order to ascertain whether the effect of such agreement or compromise would be to enhance the rent in a manner, or to an extent not allowed by Section 34 in the case of contract, record evidence as to the rent which was legally payable immediately before the period in respect of which the dispute arose.