By-elections in Kenya have often served as tests of a political party’s strength and the sitting government’s support.