We use 5 litre cylinders for compressed nitrogen at work and i know that all cylinders, especially alluminium alloy ones have an expiry date.
They have to be pressure tested every 2 years if i remember correctly by a suitably certified workshop, usually at the place that fills them up.
If you can get them for free, then you could check them, but perhaps there is a reason why they dumped them in the first place.