Make /recent xpath test slightly more reliable

and tidy.