Local and national elections pose the biggest test yet to the British prime minister's battered authority.