More robust version, test is automated now.

(test uses sudo and takes a long time, so it's ot possible
to run all the time).