Friday 's polls , in which voters also chose 12 members of the European Parliament , were Cowen 's first electoral test since lawmakers voted by 88 to 76 for him to succeed veteran prime minister Bertie Ahern in May 2008 .