Generally spot on in my experience. I've only ever agreed to one, and it was a mess, with the interviewer getting very upset and pushing back on all of my answers. Since then I politely decline. I've had one boss tell me it wasn't optional, to which I responded that I'd be happy to leave earlier if he wanted to enforce the requirement. He swiftly backed down, as we hadn't yet finished knowledge transfer.