I have a few questions.
Which blood tests have been done? Has a check been done on the kidney and liver?
I would want to know the status of the liver and kidney in an older cat as those are the two most common organs which have issues. Both of those organs can cause wandering aimlessly symptoms.
Incontinence generally warrants a complete exam of the bladder, to include urinalysis, x-rays, and culture and sensitivity. Until those things are checked out, then one can't rule out a number of problems which come with the urinary tract.
I hope this is helpful. Please push ACCEPT and thanks1