The election is seen as a test ahead of a presidential ballot next year in a country struggling to emerge from decades of conflict, an Islamist insurgency and frequent natural disasters.