Fix sudo tests