Fix sudo functional test