Make isTooBig and calculateFee testable