Add simulate_initial_login flag to sudo, along with appropriate tests