If they don't have real cash then you can often get instant bank transfers with online banking.
For me, if someone wants a test ride I'll either want the full cash in my hand, or their bike/car keys as collateral. It does depend though on how I feel at the time, if someone seems legit I may be prepared to let them go without that, but in most cases I feel it's a precaution that's worth taking.