Yes - but were they legally required to perform that particular test?
What do you mean by "legally".
There is probably no specific airworthiness requirement to conduct that specific test at the end of a lease (but ICBW).
If the lease contract specifies a handover procedure then that part of the contract is legally enforceable in the same way as any other contract.
If you borrow my aircraft you do so on my terms and I am NOT about to accept it back with just a walkaround and a kick of the tyres.