A onetime policy adviser to John Edwards testified Tuesday that he warned Barack Obama's presidential campaign staff in 2008 to look closely at rumors about the former North Carolina senator's infidelity before it considered offering him any position in the administration.