(5)Where the Taxing Officer is of opinion that any such agreement as aforesaid is unfair or unreasonable, he may refer the matter to the Judge who may thereupon make such order as he thinks just, and the taxation shall proceed in accordance with such order.