If you only consume occasionally pretty much all of those substances are only testable 1-3 days after consuming them, if you're a regular user it's usually between 5-7 days maximum.
As a regular user Ketamine could be tested up to 14 days in your urine.
THC has the longest timeframe with up to 60 days when you use regularly.